import 'package:flutter/material.dart';
import 'package:oster_cigarette/router/router.dart';

abstract class GRouter {
  static Route<dynamic>? getRoute(RouteSettings settings) {
    final Route<dynamic>? route = getUserRoute(settings, _buildRoute);
    return route;
  }

  static PageRoute _buildRoute(RouteSettings settings, Widget builder) {
    return MaterialPageRoute(
      settings: settings,
      builder: (BuildContext ctx) {
        return builder;
      },
    );
  }
}
